package com.lk.test;

import com.lk.dao.xaiofei;
import com.lk.dao.xaiofeiImpl;
import com.lk.entity.Fruit;

import java.io.File;
import java.util.Scanner;

public class eat {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("输入你要吃什么水果");
        String str =sc.next();
        Fruit fruit=new Fruit(str,"甜甜的");
        xaiofei x=new xaiofeiImpl();
        x.eat(fruit);
    }
}
